/*
Copyright (c) 2013, Maopy. All rights reserved.
Based on YUI http://yuilibrary.com/yui/docs/cssreset/
version: 0.9 | 20131009
*/

/*
Browser support
Google Chrome, Mozilla Firefox 3+, Internet Explorer 8+
*/

/**
 * Prevent iOS text size adjust after orientation change, without disabling
 * user zoom.
 */

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/** 清除内外边距 **/
/* structural elements 结构元素*/
body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
  /* list elements 列表元素 */
dl,
dt,
dd,
ul,
ol,
li,
  /* text formatting elements 文本格式元素 */
pre,
  /* form elements 表单元素 */
form,
fieldset,
legend,
input,
button,
textarea,
  /* table elements 表格元素 */
th,
td {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/** 边框 **/
fieldset,
img {
  border: 0
} /* img 搭车：让链接里的 img 无边框 */
abbr,
acronym {
  border: 0;
  font-variant: normal
}

/** 外边框 **/
:focus {
  outline: 0
}

/** 字体样式 **/
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var,
optgroup {
  font-style: inherit;
  font-weight: inherit
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal
}
input,
button,
textarea,
select,
optgroup,
option {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit
}
code,
kbd,
samp,
tt {
  font-size: 100%
}

/** 行高 **/
body {
  line-height: 1.5
}

/** 重置列表元素 **/
ol,
ul {
  list-style: none
}

/** 重置表格元素 **/
table {
  border-collapse: collapse;
  border-spacing: 0
} /* HTML中设置 'cellspacing="0"' 来达到完美重置效果 */
caption,
th {
  text-align: left
}

/** 重置上下标 **/
sup {
  vertical-align: text-top
}
sub {
  vertical-align: text-bottom
}

/** 重置引用元素 **/
blockquote,
q {
  quotes: none
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none
}

/* Links
   ========================================================================== */

/** 重置文本格式元素 **/
:link,
:visited,
ins {
  text-decoration: none
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined in IE 8/9.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
  display: block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
